package com.sxz.sbs.module.sms.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sxz.sbs.R;
import com.sxz.sbs.module.sms.mode.SmsClientBean;

import java.util.List;

/**
 * 短信列表
 */

public class SmsClientAdapter extends BaseQuickAdapter<SmsClientBean,BaseViewHolder>{
    public SmsClientAdapter(@Nullable List<SmsClientBean> data) {
        super(R.layout.item_sms_client_layout,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SmsClientBean item) {
        helper.setText(R.id.tv_sms_client_name,item.getName());
        helper.setText(R.id.tv_sms_client_number,item.getNum()+"");
    }
}
